package com.ds.dsm.view.nav.tree;

import com.ds.esd.custom.bean.MethodConfig;
import com.ds.esd.custom.bean.enums.ModuleViewType;
import com.ds.esd.custom.tree.annotation.TreeAnnotation;
import com.ds.esd.tool.ui.component.list.TreeListItem;


@TreeAnnotation()
public class NavActionConfigTree extends TreeListItem {
    String navClassName = "dsm.view.config.nav.NavActionGroup";

    public NavActionConfigTree(MethodConfig methodAPIBean, String sourceClassName) {
        ModuleViewType dsmType = methodAPIBean.getModuleViewType();
        String methodName = methodAPIBean.getMethodName();
        this.caption = "工具栏按钮";
        this.setEuClassName(navClassName);
        this.imageClass = "spafont spa-icon-c-toolbar";
        this.setId(dsmType.getType() + "_" + methodName + "_NavActionGroup");
        this.setGroup(true);
        this.addTagVar("sourceClassName", sourceClassName);
        this.addTagVar("methodName", methodName);
        this.addTagVar("domainId", methodAPIBean.getDomainId());
        this.addTagVar("viewInstId", methodAPIBean.getViewInstId());


    }


}


